package com.iptv.grape.net.Entity;

import android.util.Log;

import com.google.gson.Gson;

// 频道列表接口返回结果实体类
public class ChannelResult extends NetBaseResult {
    private ChannelDataResult data;

    public ChannelDataResult getData() {
        return this.data;
    }


    public static ChannelResult createForJson(String json){
        try {
            ChannelResult channelResult = new Gson().fromJson(json, ChannelResult.class);
            return channelResult;
        }
        catch (Exception e){
            Log.e("ChannelResult", e.getMessage() );
            return null;
        }
    }
}
